package com.lbd.dynamicCode.bean;

import lombok.*;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 重定向标
 * Created by zzl on 2017/11/19
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
public class MsgRedirection implements Serializable {
    private static final long serialVersionUID = -6931485644715732436L;
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    public String id;
    // 长连接
    private String url_long;
    //短连接
    private String url_short;
    private int type;
}
